package com.manage.project.biz.service.impl;

import java.util.List;
import com.manage.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.manage.project.biz.mapper.BizJidiansheshiqingjieweihuMapper;
import com.manage.project.biz.domain.BizJidiansheshiqingjieweihu;
import com.manage.project.biz.service.IBizJidiansheshiqingjieweihuService;

/**
 Service业务层处理
 *
 * @author liutao
 *
 */
@Service
public class BizJidiansheshiqingjieweihuServiceImpl implements IBizJidiansheshiqingjieweihuService
{
    @Autowired
    private BizJidiansheshiqingjieweihuMapper bizJidiansheshiqingjieweihuMapper;

    /**
     * 查询清洁维护
     *
     * @param id 清洁维护主键
     * @return 清洁维护
     */
    @Override
    public BizJidiansheshiqingjieweihu selectBizJidiansheshiqingjieweihuById(Long id)
    {
        return bizJidiansheshiqingjieweihuMapper.selectBizJidiansheshiqingjieweihuById(id);
    }

    /**
     * 查询清洁维护列表
     *
     * @param bizJidiansheshiqingjieweihu 清洁维护
     * @return 清洁维护
     */
    @Override
    public List<BizJidiansheshiqingjieweihu> selectBizJidiansheshiqingjieweihuList(BizJidiansheshiqingjieweihu bizJidiansheshiqingjieweihu)
    {
        return bizJidiansheshiqingjieweihuMapper.selectBizJidiansheshiqingjieweihuList(bizJidiansheshiqingjieweihu);
    }

    /**
     * 新增清洁维护
     *
     * @param bizJidiansheshiqingjieweihu 清洁维护
     * @return 结果
     */
    @Override
    public int insertBizJidiansheshiqingjieweihu(BizJidiansheshiqingjieweihu bizJidiansheshiqingjieweihu)
    {
        bizJidiansheshiqingjieweihu.setCreateTime(DateUtils.getNowDate());
        return bizJidiansheshiqingjieweihuMapper.insertBizJidiansheshiqingjieweihu(bizJidiansheshiqingjieweihu);
    }

    /**
     * 修改清洁维护
     *
     * @param bizJidiansheshiqingjieweihu 清洁维护
     * @return 结果
     */
    @Override
    public int updateBizJidiansheshiqingjieweihu(BizJidiansheshiqingjieweihu bizJidiansheshiqingjieweihu)
    {
        bizJidiansheshiqingjieweihu.setUpdateTime(DateUtils.getNowDate());
        return bizJidiansheshiqingjieweihuMapper.updateBizJidiansheshiqingjieweihu(bizJidiansheshiqingjieweihu);
    }

    /**
     * 批量删除清洁维护
     *
     * @param ids 需要删除的清洁维护主键
     * @return 结果
     */
    @Override
    public int deleteBizJidiansheshiqingjieweihuByIds(Long[] ids)
    {
        return bizJidiansheshiqingjieweihuMapper.deleteBizJidiansheshiqingjieweihuByIds(ids);
    }

    /**
     * 删除清洁维护信息
     *
     * @param id 清洁维护主键
     * @return 结果
     */
    @Override
    public int deleteBizJidiansheshiqingjieweihuById(Long id)
    {
        return bizJidiansheshiqingjieweihuMapper.deleteBizJidiansheshiqingjieweihuById(id);
    }
}
